package cn.jobstart.controller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import cn.jobstart.pubInter.exception.SkException;
import cn.jobstart.pubInter.IBaseService;
import cn.jobstart.pubInter.RestfulController;
import cn.jobstart.dto.ResumeBasicAttachDTO;
import cn.jobstart.dto.ResumeBasicAttachPageDTO;
import cn.jobstart.modelExt.ResumeBasicAttachExt;
import cn.jobstart.searchExt.ResumeBasicAttachSearchExt;
import cn.jobstart.service.IResumeBasicAttachService;
import cn.jobstart.vo.ResumeBasicAttachDetailVO;
import cn.jobstart.vo.ResumeBasicAttachListVO;
import cn.jobstart.vo.ResumeBasicAttachDomainVO;
import cn.jobstart.vo.ResumeBasicAttachDetailDomainVO;
import cn.jobstart.export.ResumeBasicAttachDomainExport;
import cn.jobstart.controller.ApiManageController;
import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import cn.jobstart.pubInter.exception.BusinessException;

/**
*    @author sunke
*    @Date 2023-10-04 23:10:35
*    @description ResumeBasicAttachController      简历附件
*/
@Api(tags = "管理系统-简历附件相关", description = "简历附件相关接口")
@RestController(value ="resumeBasicAttachRestfulController")
@RequestMapping("/resumeBasicAttach/")
@Validated
public class ResumeBasicAttachController extends ApiManageController<ResumeBasicAttachDTO,ResumeBasicAttachPageDTO,ResumeBasicAttachExt, ResumeBasicAttachSearchExt,ResumeBasicAttachDomainVO,ResumeBasicAttachDetailDomainVO,ResumeBasicAttachDetailVO,ResumeBasicAttachListVO,String> {

	@Resource(name = "resumeBasicAttachService")
	private IResumeBasicAttachService resumeBasicAttachService;



	@Override
	public IBaseService<ResumeBasicAttachExt, ResumeBasicAttachSearchExt,String> getBaseService() throws SkException {
		return resumeBasicAttachService;
	}

	@Override
	public String getBaseRoute() {
		return "/resumeBasicAttach/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "简历附件";
	}

	@Override
	public Class exportExcelClass() {
		return ResumeBasicAttachDomainExport.class;
	}

	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(resume_basic_attach.rba_id) as countNum");
		return totalMapSet;
	}


}